package cn.HuanG.org.controller;

import cn.HuanG.org.service.IEmployeeService;
import cn.HuanG.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/EmpActive")
public class EmpActiveController {
    @Autowired
    private IEmployeeService employeeService;

    @GetMapping("/active/{id}")
    public AjaxResult active(@PathVariable("id") Long id){
        employeeService.active(id);
        return AjaxResult.me();
    }
}
